package cn.com.open.itembank.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by lucky on 2018/1/31.
 */
@FeignClient(name = "item-paper-service")
public interface ItemBankTestPaperRemoteService {
    /**
     * 跨题库批量复制试卷.
     *
     * @param sourceItembankId 原题库id
     * @param targetItemBankId 目标题库id
     * @param targetOrgId      目标题库机构id
     * @param testPaperMap     旧新试题id的map
     * @return the map
     */
    @PostMapping(value = "/itembank/{itemBankId}/copypaperto/{targetItemBankId}")
    public Map<String, String> copyCrossItemBank(@PathVariable(value = "itemBankId") String sourceItembankId,
                                                 @PathVariable(value = "targetItemBankId") String targetItemBankId,
                                                 @RequestParam("targetOrgId") String targetOrgId, @RequestBody Map<String, String> testPaperMap);
}
